<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>无参数函数的应用</title>
    <script>
        function show(){
            for (let i = 0; i < 5; i++) {
                console.log(i+1,"欢迎学习Javascript");
            }
        }
    </script>
</head>
<body>
    <button onclick="show()">显示5次欢迎学习</button>
</body>
</html>